SNMP View commands.
Specifies the MIB subtree in the form of Object identifier. Example: 1.3.6.1
Specifies the mib-tree access. Valid values are: included, excluded.
This example creates a view on a specified device.
efa inventory device snmp view create --ip 10.139.44.153-154 --name view1 --mib-tree 1.3.6.1 --mib-tree-access included +---------------+-------+----------+-----------------+---------+--------+ | IP Address | Name | MIB-Tree | MIB-Tree-Access | Status | Reason | +---------------+-------+----------+-----------------+---------+--------+ | 10.139.44.153 | view1 | 1.3.6.1 | included | Success | | +---------------+-------+----------+-----------------+---------+--------+ | 10.139.44.154 | view1 | 1.3.6.1 | included | Success | | +---------------+-------+----------+-----------------+---------+--------+ Snmp view details
This example deletes a view on a specified device.
efa inventory device snmp view delete --ip 10.139.44.153-154 --name view1 --mib-tree 1.3.6.1 +---------------+-------+----------+---------+--------+ | IP Address | Name | MIB-Tree | Status | Reason | +---------------+-------+----------+---------+--------+ | 10.139.44.153 | view1 | 1.3.6.1 | Success | | +---------------+-------+----------+---------+--------+ | 10.139.44.154 | view1 | 1.3.6.1 | Success | | +---------------+-------+----------+---------+--------+ Snmp view details
This example shows the current SNMP view for the specified device
efa inventory device snmp view list --ip 10.139.44.153-154 +---------------+-------+----------+-----------------+----------+ | IP Address | Name | MIB-Tree | MIB-Tree_Access | AppState | +---------------+-------+----------+-----------------+----------+ | 10.139.44.153 | view1 | 1.2.3.4 | included | | + +-------+----------+-----------------+----------+ | | view2 | 1.2.3.4 | included | | +---------------+-------+----------+-----------------+----------+ | 10.139.44.154 | view3 | 1.2.3.5 | excluded | | +---------------+-------+----------+-----------------+----------+ Snmp view details